/*
  Motor.h- Library for controlling two motors with a ardumoto shield.
  Created by Matthew Hughes, febuary 18, 2014.
  Released into the public domain.
*/
#ifndef Motor_h
#define Motor_h

#include "Arduino.h"

class Motor
{
  public:
	Motor(int val);
    ~Motor();
	void setup();
    void direct(int change_a,int change_b);
	void speed(int speed,int parallel);
	void Fadein();
	void Fadeout();
	void stop_A();
	void stop_B();
	void stop_AB();
  private:
	int pwm_a, pwm_b, dir_a, dir_b, val, parallel;
};
#endif
